//商品接口
import request from '@/utils/request'

//新增商品
export function addGoods(data) {
    return request({
        url: '/backend/goods/add',
        method: 'post',
        data
    })
}
//删除商品
export function deleteGoods(data) {
    return request({
        url: '/backend/goods/delete',
        method: 'post',
        data: data
    })
}
//商品列表
export function getGoodsList(data) {
    return request({
        url: '/backend/goods/list',
        method: 'post',
        data: data
    })
}
//编辑商品
export function editGoods(data) {
    return request({
        url: '/backend/goods/update',
        method: 'post',
        data: data
    })
}
//商品详情
export function detailGoods(data) {
    return request({
        url: '/backend/goods/detail',
        method: 'post',
        data: data
    })
}
